<template>
<div class="root">
<div class="head"></div>
<calendar></calendar>
  <div class="app">
    <el-row type="flex" justify="center" class="headerdemo">
      <div class="logo">
        <img :src="require('@/assets/logo.png')" alt="" />
      </div>
     
      <router-link to="/index" @click.native="lunbo">首页</router-link>
      <router-link to="/Agent">房产经纪</router-link>
      <router-link to="/Category">地产分类</router-link>
      <router-link to="/About">关于我们</router-link>
    </el-row>
    <div>
       <transition name="fade">
      <router-view></router-view>
       </transition>
        <div class="imgditu">
      <!-- <img src="https://img5.sofang.com/sofangcityagent/community/index/web/recommend.jpg" alt=""> -->
      <img src="https://img5.sofang.com/sofangcityagent/community/index/web/community.jpg" alt="">
 </div>
    </div>    
  </div>
  
  <fooler></fooler> 
</div>

</template>

<script>
export default {
  methods:{
    lunbo(){
         setTimeout(() => {
            location.reload()
         }, 200);
    }
  }
};
</script>

<style lang="less" >
.fade-enter-active, .fade-leave-active {
  transition: opacity .6s;
}
.fade-enter, .fade-leave-to /* .fade-leave-active below version 2.1.8 */ {
  opacity: 0;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.app {
  margin: 0 auto;
  width: 1200px;
}
.head{
  position: absolute;
  left: 0;
  top: 66px;
  width: 100%;
   border-bottom: 2px solid rgba(242, 242, 242, 0.747);
}
body html {
  width: 100%;
}
.logo {
    position: absolute;
    left: 0;
    top: 0;
  height: 77px;
  width:77px;
  img {
    width: 100%;
    height: 100%;
  }
}

.headerdemo{
  height: 66px;
  line-height:66px;
  a{
    text-align: center;
    display: block;
    width: 100px;
    height: 66px;
    line-height: 66px;
    text-decoration: none;
    color: #000;
  }
.router-link-active {
background-color: #45c3b8;
color: #fff;
}
}


.imageSize{
    width: 300px;
    border-right: 2px dashed rgba(242, 242, 242, 0.9);
    height: 220px;
    flex:1;
    img{
        width: 100%;
        height: 100%;
    }
}
.demo{
    flex:3;
    font-size: 18px;
    text-align: center;
    display: flex;
    justify-content: space-around;
    flex-direction: column;
}
/deep/.box-card{
    border: 2px solid rgba(242, 242, 242, 0.9);
}
.header {
    font-size: 20px;
  // border-top: 2px solid rgba(242, 242, 242, 0.9);
  padding: 20px 0;
  color: #feb232;
}


.imgditu{
  margin: 20px 0;
}

</style>